{===============================================================================

WARNING!
Before running the tests you must build Assets.res file

To do this add the next two events to the "Pre-build events" project options:

"$(PROJECTDIR)\..\Tools\assetslz" -GZ1 -B1 "$(PROJECTDIR)\Assets" "$(PROJECTDIR)\Assets.tmp"
"$(PROJECTDIR)\..\Tools\resedit" -D "$(PROJECTDIR)\Assets.res" rcdata ASSETS "$(PROJECTDIR)\Assets.tmp"

For Delphi 2007 IDE and above:

  Project / Options / Build Events / Pre-build events / Commands

    (if you don't see the "Build Events" section: save, close and reopen
    the project. This is known issue in old IDEs when .dproj is recreated)

For Delphi 6/7/2005/2006 IDE:

  Component / Install Packages / Add

    Tools\BuildEvents\BuildEventsD6.bpl for Delphi 6
    Tools\BuildEvents\BuildEventsD7.bpl for Delphi 7
    Tools\BuildEvents\BuildEventsD2005.bpl for Delphi 2005
    Tools\BuildEvents\BuildEventsD2006.bpl for Delphi 2006

  Project / Build Events / Pre-build events

For Free Pascal Lazarus IDE (when this file opened):

  Run / Build File

===============================================================================}

{$IFDEF LINUX}
  {%BuildCommand pre-build.sh $ProjPath()}
{$ENDIF}
{$IFDEF MSWINDOWS}
  {%BuildCommand pre-build.bat "$ProjPath()"}
{$ENDIF}

program mORMotBPTests;

{$APPTYPE CONSOLE}

{$R Assets.res}

uses
  {$I SynDprUses.inc} // enable FastMM4 prior to Delphi 2006, and enable FPC on Linux
  BoilerplateAssets in '../BoilerplateAssets.pas',
  BoilerplateHTTPServer in '../BoilerplateHTTPServer.pas',
  CSP in '../CSP.pas',
  BoilerplateTests in 'BoilerplateTests.pas';

begin
  with TBoilerplateFeatures.Create do
  try
    RunAsConsole;
  finally
    Free;
  end;
end.
